package com.mxin.ui.base

import android.app.Dialog
import android.content.Context
import androidx.lifecycle.LifecycleOwner


interface IContextView{
    fun getContext(): Context
}


interface IBaseView : IContextView, ILoadingView{

    fun finishActivity()

    fun initView()

    fun initData()

    fun getLifeCycleOwner():LifecycleOwner

}


interface ILoadingView{

    fun showLoadingView(init:((Dialog)->Unit)?)

    fun dismissLoadingView()

}